﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.DataBase.MyProject.Infrastructure.Migrations
{
    public partial class infosssssssssssssssssssssssssssssss : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Approvalstatus",
                table: "Records");

            migrationBuilder.RenameColumn(
                name: "UserName",
                table: "Records",
                newName: "ApprovalName");

            migrationBuilder.AddColumn<string>(
                name: "ApplicationName",
                table: "Records",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "ApprovalOpinion",
                table: "Records",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ApplicationName",
                table: "Records");

            migrationBuilder.DropColumn(
                name: "ApprovalOpinion",
                table: "Records");

            migrationBuilder.RenameColumn(
                name: "ApprovalName",
                table: "Records",
                newName: "UserName");

            migrationBuilder.AddColumn<bool>(
                name: "Approvalstatus",
                table: "Records",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }
    }
}
